<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/* Start of file cashflow.php */
/* Location: ./billing-ap/controllers/cashflow.php */
class Cashflow extends CI_Controller {
	
	function __construct(){
		parent::__construct();
		//$this->load->model('providers'); /** load table providers **/ 
        //$this->load->model('excels'); /** load function excels **/
        if(!$this->session->userdata('username')) /** restrict area if not acces to login page**/
			redirect('/',301); 
    }
    
    function rr_department_bar(){
		$this->ws->set('title',lang('chrtRRDepartmentBar'));/** title page */
		$this->ws->set('username',$this->session->userdata('username')); /** username session */
		$this->ws->set('department',$this->session->userdata('dep')); /** departement session */
		$this->ws->set_theme('smooth'); /** set theme to administrator*/
		$this->ws->view('cashflow/index_rrDepartment'); /** view layout to views/cashflow/index **/     
	}
    
    function rr_department_pie(){
		$this->ws->set('title',lang('chrtRRDepartmentPie'));/** title page */
		$this->ws->set('username',$this->session->userdata('username')); /** username session */
		$this->ws->set('department',$this->session->userdata('dep')); /** departement session */
		$this->ws->set_theme('smooth'); /** set theme to administrator*/
		$this->ws->view('cashflow/index_rrDepartmentPie'); /** view layout to views/cashflow/index **/     
	}
    
    function rr_coa_pie(){
		$this->ws->set('title',lang('chrtRRCOAPie'));/** title page */
		$this->ws->set('username',$this->session->userdata('username')); /** username session */
		$this->ws->set('department',$this->session->userdata('dep')); /** departement session */
		$this->ws->set_theme('smooth'); /** set theme to administrator*/
		$this->ws->view('cashflow/index_rrCOAPie'); /** view layout to views/cashflow/index **/     
	}
    
}    